package com.zatech.cgnci.project.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zatech.cgnci.project.dto.CgnciUnearnedPremiumReserveLedgerDTO;
import com.zatech.cgnci.project.service.CgnciOutstandingClaimsReserveLedgerService;
import com.zatech.cgnci.project.vo.CgnciOutstandingClaimsReserveLedgerVO;
import com.zatech.cgnci.project.vo.CgnciUnearnedPremiumReserveLedgerVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 未决赔款准备金台账表 前端控制器
 * </p>
 *
 * @author Generator
 * @since 2025-01-23
 */
@RestController
@RequestMapping("/outstanding-reserveLedger")
@Api(produces = "application/json", tags = "未决赔款准备金台账")
public class CgnciOutstandingClaimsReserveLedgerController {

    @Resource
    private CgnciOutstandingClaimsReserveLedgerService reserveLedgerService;
    @PostMapping("/page")
    @ApiOperation(value = "分页列表查询")
    public IPage<CgnciOutstandingClaimsReserveLedgerVO> page(@RequestBody CgnciUnearnedPremiumReserveLedgerDTO queryDTO) {
        return reserveLedgerService.pageData(queryDTO);
    }
}

